package com.alex.basic.web.struts2;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;


public abstract class BasicAction extends ActionSupport implements Preparable,
		ModelDriven<Object> {

	private static final long serialVersionUID = -1240265186064290301L;
	
	private String id;

	public void prepare() throws Exception {
		prepareModel();
	}
	
	public abstract void prepareModel();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
